/*
@Author   : Uyynot
@Email    : uyynot@qq.com
@Time     : 2023/8/23 17:43
@File     : user.go
@Project  : web_scaff
@Desc     :
*/
package dao

import (
	"web_scaff/configs"
	"web_scaff/models"
)

func CreateUser(u *models.User) error {
	if err := configs.Db.Create(u).Error; err != nil {
		return err
	}
	return nil
}
